package javaer.starter.model;

import com.google.common.collect.Lists;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.List;

/**
 * 依赖拓展
 *
 * @author yangzhen
 * @date 2023/6/5 10:56
 * @since 1.0.0
 */
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class DependencyExcludedModel extends BaseModel {

    public static final String SQL_TEMPLATE = "insert into starter_dependency_excluded (type_id, dep_id, group_id, artifact_id, gmt_create, gmt_modified) values ";

    public static final String SQL_NAME = "starter_dependency_excluded.sql";

    /**
     * 脚手架类型唯一标识
     */
    String typeId;
    /**
     * 依赖唯一标识
     */
    String depId;
    /**
     * 依赖坐标组
     */
    String groupId;
    /**
     * 依赖坐标
     */
    String artifactId;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getDepId() {
        return depId;
    }

    public void setDepId(String depId) {
        this.depId = depId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getArtifactId() {
        return artifactId;
    }

    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    @Override
    public List<Object> getSqlValues() {
        return Lists.newArrayList(
                this.typeId,
                this.depId,
                this.groupId,
                this.artifactId,
                this.getGmtCreate(),
                this.getGmtModified()
        );
    }
}